package com.whjk.safework.entity;

import cn.hutool.core.date.DateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @BelongsProject: safework
 * @BelongsPackage: com.whjk.safework.entity
 * @Author: leebin
 * @CreateTime: 2024-03-06  09:29
 * @Description: TODO
 * @Version: 1.0
 */

@Table("t_worker_year_score")
@Data
public class WorkerYearScoreVo {

    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long        worker_id;
    private Integer     year;
    private BigDecimal  my_score;
    private BigDecimal  leader_score;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public DateTime     last_time;
}
